#coding=utf-8
from django.db import models
from django.core.exceptions import ObjectDoesNotExist

# Create your models here.
#友情链接
class FriendLink(models.Model):

    name = models.CharField(maxlength=20,blank=False)

    link = models.CharField(maxlength=100,blank=False)

    count = models.IntegerField(blank=False)

    datetime = models.DateTimeField(auto_now_add = True)
    
    
    def __str__(self):
        return self.name

    class Admin:
        pass

class FriendsLinks(models.Model):

    name = models.CharField(maxlength=20,blank=False)

    link = models.CharField(maxlength=100,blank=False)

    count = models.IntegerField(blank=False)

    datetime = models.DateTimeField(auto_now_add = True)

    email = models.CharField(maxlength=200,blank=False)

    qqnumber = models.CharField(maxlength=20,blank=False)

    isCheck = models.BooleanField(null=True,blank=True)
    
    
    def __str__(self):
        return self.name

    class Admin:
        pass